package com.ican.javadoc.common.common;


public class BusinessException extends RuntimeException {
    private static final long serialVersionUID = 1L;
    
    private String code;
    private String msg;
    private Object[] params;

    public BusinessException() {
		super();
	}

	public BusinessException(String message) {
		super(message);
        msg = message;
	}
	public BusinessException(Throwable cause) {
        super(cause);
    }
	public BusinessException(String message, Throwable cause) {
		super(message, cause);
        msg = message;
	}
	public BusinessException(Throwable cause, String code, Object[] params) {
        super(cause);
        this.code = code;
    }
    
	public String getCode() {
        return code;
    }
    public void setCode(String code) {
        this.code = code;
    }
    public String getMsg() {
        return msg;
    }
    public void setMsg(String msg) {
        this.msg = msg;
    }
    public Object[] getParams() {
        return params;
    }
    public void setParams(Object[] params) {
        this.params = params;
    }
}
